﻿using Furion.DependencyInjection;
using Microsoft.AspNetCore.DataProtection.KeyManagement;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ECO.Admin.Core.EntityCore
{
    /// <summary>
    /// 公共实体，拥有创建人，修改人等属性
    /// </summary>
    /// <typeparam name="TKey"></typeparam>
    public abstract class PrivateCommonEntity<TKey>:Entity<TKey>
    {
        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public virtual TKey CreateBy { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public virtual TKey UpdateBy { get; set; }
    }
}
